/*
 * @Author: 梁青春
 * @Date: 2022-04-21 15:22:59
 * @LastEditTime: 2022-04-27 09:37:15
 * @LastEditors: 梁青春
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src')
    }
  },
  server: {
    port: 8099
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: '@import "@/assets/css/mixin.scss";' // 添加公共样式
      }
    }
  }  
})
